<template>
	<view class="footerDiv">
		<view class="menu-item" v-for="item in menu" :key="item.name" @click="goPage(item)">
			{{item.text}}
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				menu: [{
						text: '价格',
						url: 'pages/work/apply/apply/reportinglog/capitalManager/index'
					},
					{
						text: '库存',
						url: 'pages/work/apply/apply/reportinglog/capitalManager/index'
					},
					{
						text: '首页',
						url: 'pages/work/apply/apply/reportinglog/index'
					},
					{
						text: '资金',
						url: '/pages/work/apply/apply/reportinglog/capitalManager/index'
					},
					{
						text: '质量',
						url: 'pages/work/apply/apply/reportinglog/capitalManager/index'
					}
				]
			};
		},
		methods: {
			// 底部点击跳转指定页面
			goPage(item) {
				this.$u.route(item.url)
			}
		}
	}
</script>

<style lang="scss">
	.footerDiv {
		width: 100%;
		height: 100rpx;
		position: fixed;
		bottom: 0;
		border: 1px solid red;
		display: flex;
		align-items: center;
		box-sizing: border-box;
		justify-content: space-between;
		background-image: url(../../../../../../static/img/largeProcurement/homeBanner.png);

		.menu-item {
			width: 20%;
			text-align: center;
		}

	}
</style>
